import { addColumnEllipsis } from "utils/common";

let columns = [
  {
    dataIndex: "id",
    title: "ID",
    align: 'center',
    width: 80
  },
  {
    dataIndex: "name",
    title: "名称"
  },
  {
    dataIndex: "image",
    title: "图片",
    width: 100,
    scopedSlots: { customRender: "imgs" },
    align: 'center'
  },
  {
    dataIndex: "weigh",
    title: "权重",
    align: 'center'
  },
  {
    dataIndex: "createTime",
    title: "创建时间",
    align: 'center',
    width: 140
  },
  {
    dataIndex: "modifyTime",
    title: "更新时间",
    align: 'center',
    width: 140
  },
  {
    dataIndex: "operation",
    title: "操作",
    scopedSlots: { customRender: "operation" },
    width: 120,
    align: 'center'
  }
];

columns = addColumnEllipsis(columns);
export default columns;
